﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<ComputerShopE3.Models.RAM>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>RAM</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Thêm RAM</h2>

    <%= Html.ValidationSummary() %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            
            <%=ViewData["error"] %>
            <% if (null == ViewData["error"]) 
                   Html.RenderPartial("SAN_PHAM_Template");%>
<%--            <p>
                <label for="id">
                    id:</label>
                <%= Html.TextBox("id") %>
                <%= Html.ValidationMessage("id", "*") %>
            </p>--%>
            <p>
                <label for="Bus">Bus:</label>
                <%= Html.TextBox("ram.Bus") %>
                <%= Html.ValidationMessage("Bus", "*") %>
            </p>
            <p>
                <label for="DungLuong">Dung lượng:</label>
                <%= Html.TextBox("ram.DungLuong") %>
                <%= Html.ValidationMessage("DungLuong", "*") %>
            </p>
            <p>
                <input type="submit" value="Tạo mới" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Trở lại danh mục", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

